This article mainly introduces how python uses the win32com library to play mp3 files. it involves related techniques for Python to use the win32com library to operate audio files, for more information about how to use the win32com library to play
This article describes how Python uses Pygame to play MIDI and MP3 files. Share to everyone for your reference. The implementation method is as follows:
"' Pg_midi_sound101.py play MIDI Music files (also mp3 files) using Pygame tested with python273/331 and pygame192 b
3 ways are now measured
Call system default player playback
Import OSOs.system (' Test.mp3 ')Normal speed, disadvantage, pop-up player window, may be slow to respond after clicking2. Pygame PlaybackNo can install pip install Pygame FirstImport PygamePygame.init () track = Pygame.mixer.music.load (' Test.mp3 ') Pygame.mixer.music.play () Time.sleep (Ten) Pygame.mixe R.music.stop ()Speed distortion, if you write a game this library must, test can play3. Mp3play PlaybackPip Install Mp
) iterator.next ();hashmapMap.put ("Mp3_name", Mp3info.getmp3name ());Map.put ("size_id", Mp3info.getmp3size ());List.add (map);}Simpleadapter simpleadapter = new Simpleadapter (this,list,r.layout.mp3info_item,new string[]{"Mp3_name", "size_id"}, New int[] {r.id.mp3_name,r.id.size_id}); Only two textview,id in the Mp3info_item.xml file are Mp3_name and size_idSetlistadapter (Simpleadapter);Super.onresume ();}When you click a row in the current activity, the
How can I directly play an MP3 file embedded in EXE in a "stream" mode? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061009145524261.html
How can I directly play an MP3 file embedded in EXE in a "stream" mode?
Instead of saving MP3 files t
Mcisendstring is an API command used to play multimedia files. It can play MPEG, Avi, WAV, MP3, etc. Here we will introduce 1.Usage:1. Open a multimedia file.First, put a picture control on the dialog, and mcisendstring plays multimedia files on the plane of the picture control,Set the picture Control ID to idc_static1:Cstatic * pstatic = (cstatic *) getdlgitem (
How can I directly play MP3 or WMA embedded in EXE resources in a "stream" manner? Hope to give an example (send 100 points) :) Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061009145227262.html
How can I embed MP3 or WMA in an EXE file and play the file directly by means of "stream? H
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and communication. For more information, indicate the author and its source.
**************************************** **************************************** ************/
1. Introduction to Android audiotrack
In Android, mediaplayer and audiotrack can be
You need to write an EXE file, which is embedded with a piece of music that I designed. After opening the EXE file, the music will be automatically played. The most important thing is that there cannot be any additional files except the EXE file. Copy the EXE file to another computer (with framework installed) and run it properly.
1. Resource embedding
This is relatively simple. vs2008 provides a very convenient method. After adding a project, open resources in the properties folder. resx fi
1. First introduce Jlayer.jar//mvnrepository.com/artifact/javazoom/jlayer2. The code is as follows PackageCom.xinfushe.taskbot.util;ImportJava.io.BufferedInputStream;ImportJava.io.FileInputStream;ImportJavazoom.jl.player.Player;/*** MP3 Player * *@authorLIFQ * * April 7, 2017 pm 5:29:57*/ Public classMp3player {PrivateString filename; Privateplayer player; Publicmp3player (String filename) { This. FileName =filename; } Public voidPlay () {Try{B
Kali Linux has been used before, work screen noise are used netease music. Since there is no Linux client, then the web version of it. Have to say, NetEase Music web version do really praise. Kali Linux under the use of Firefox to listen to the song has been very normal, but some of the site's MP3 on the hiccup, did not care. Some time ago in the dark clouds spent some WB to redeem a 256G SSD, can not wait to be loaded up, system, it should also cha
Fedora 17 cannot play MP3 rmvb... the download decoder cannot be searched automatically.
I used several players in Fedora 7, and I was unable to automatically search for and download the decoder for MP3, MP4, and other media formats. I finally found a solution to this problem, I will share it with you.
-----------------------------------------------------------
usingSystem.Runtime.InteropServices;//put WAV Public Partial classFrmmain:form {System play music wav MP3 [DllImport ("Winmm.dll")] Public Static extern BOOLPlaySound (stringPszsound,intHmod,intFdwsound);//play Windows music, Reload PublicFrmmain () {InitializeComponent (); } //enter the system to play
Bass_channelsetsync}Procedure MySync2 (Handle:hsync; channel, data, User:dword); stdcall;BeginForm1.text: = ' past midpoint ';{If you play to this (middle point) from the beginning again, you can do this:}Bass_channelplay (channel, True);End{callback function: MySync3; Although no parameters are used, it must be specified as required}Procedure MySync3 (Handle:hsync; channel, data, User:dword); stdcall;BeginForm1.text: = '
are also four methods: Play, AddFile, DelFile, and NextPlay for the next playback sequence number.
Other main code list by function
Add a single song
If (this. openFileDialog1.ShowDialog () = DialogResult. OK){String path = this. openFileDialog1.FileName;FileInfo f = new FileInfo (path );MyPlayer. AddFile (f. FullName );String STRFILE = Convert. ToString (MyPlayer. NumOfMusic );For (int I = 1; I STRFILE + = f. Name;This. listBox1.Items. Add (STRFILE
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.